<%@ page import="java.util.Random" %><%--
  Created by IntelliJ IDEA.
  User: 20154
  Date: 2024/10/16
  Time: 14:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<%
    Random rand = new Random();
    String code = "";
    for (int i = 0; i < 4; i++) {
        code += rand.nextInt(10);
    }
%>
<h1>==请登录==</h1>
<form action="check.jsp" method="post">
    <p>用户名：<input type="text" name="username"/></p>
    <p>密 码：<input type="password" name="pwd"/></p>
    <p>验证码：<input type="text" name="checkCode">
        <span><font color="red"><%=code%></font></span></p>
    <p><input type="submit" value="登录"/></p>
</form>
</body>
</html>
